<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Showitem_sale_flat extends CI_Controller {
    function __controller() {
        parent::Controller();
    }

    ######################################  поиск объявлений  ########################################

    /**
     *  поиска по аренде квартир
     */

    public function index($id = 1) {

        $data = array();
        $see = array();
        $title = 'Снять ';
        
        $this -> load -> model('Views_modul', 'views');
        $this -> load -> model('Adsent_modul', 'adsent');

        $this -> load -> model('show/sale/flat_modul', 'show');

        $see['data'] = $see['datas']['reload'] = $this -> show -> request($id);

        $this -> views -> content = $this -> load -> view('showadsent/sale/flat', $see, true);
        
        
        $this -> views -> menu = 'search';
        $this -> views -> left = '';
        $this -> views -> pathway = '';
        $this -> views -> title = $title; 
        $this -> views -> head = '';
         
        $content = $this -> views -> request_view();
        $this -> load -> view('home', $content);
    }

}
